package com.huawei.gamebox.framework.cardkit.fragment;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.HeaderViewListAdapter;
import com.huawei.appgallery.foundation.service.common.protocol.AppListFragmentProtocol;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.BaseListFragment;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.widget.CardListAdapter;
import com.huawei.appgallery.foundation.ui.framework.widget.NetworkRemindBar;
import com.huawei.appgallery.foundation.ui.framework.widget.NodataWarnLayout;
import com.huawei.appgallery.foundation.ui.framework.widget.PullUpListView;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.gamebox.framework.cardkit.bean.WiseJointDetailResponse;
import com.huawei.hms.framework.network.restclient.hianalytics.HianalyticsData;
import com.huawei.secure.android.common.intent.SafeBroadcastReceiver;
import java.lang.ref.WeakReference;
import java.util.LinkedHashMap;
import java.util.List;
import o.AccountBussinessListener;
import o.ccp;
import o.cdj;
import o.cgu;
import o.chl;
import o.chm;
import o.cia;
import o.cih;
import o.cii;
import o.cip;
import o.cja;
import o.cvt;
import o.BaseRequest;
import o.dgp;
import o.dgx;
import o.Logger;
import o.ContentManager;
import o.eoj;
import o.epv;
import o.CollectCheck;
import o.eqs;
import o.ese;
import o.ActivityUtil;
import o.evk;
import o.exp$e;
import o.exp$f;
import o.eyi;
import o.eym;
import o.eyn;
import o.eys;
import o.ll;

public class BaseGsListFragment<T extends AppListFragmentProtocol> extends BaseListFragment<T> implements AccountBussinessListener {
    private static final Object ﾞ = new Object();
    private int ʹ = 1;
    private eyn ʻˊ;
    private c ʻˋ = null;
    protected boolean ʼ = false;
    private Handler ʼˋ = new Handler();
    protected long ʽ = -1;
    protected String ˊ;
    protected long ˋ = 0;
    protected String ˎ;
    protected int ˏ = exp$f.ʼᐝ;
    protected int ॱ = exp$e.ʽ;
    protected String ॱॱ;
    protected boolean ᐝ = false;
    private h ꜝ = new h();
    private BroadcastReceiver ꜟॱ = new b();
    private long ꞌॱ = 0;
    protected boolean ﹳ = true;
    private e ﹳॱ = new e();
    protected String ﾟ;

    class a implements Runnable {
        final /* synthetic */ BaseGsListFragment ˏ;

        private a(BaseGsListFragment baseGsListFragment) {
            this.ˏ = baseGsListFragment;
        }

        public void run() {
            synchronized (BaseGsListFragment.ﾞ) {
                long currentTimeMillis = System.currentTimeMillis();
                if (this.ˏ.ˋ == 0 || currentTimeMillis - this.ˏ.ˋ >= 2000) {
                    this.ˏ.ˋ = currentTimeMillis;
                    this.ˏ.ʴ();
                    return;
                }
                Logger.ˋ("BaseGsListFragment", "onAccountBusinessResult, account interval too short.");
            }
        }
    }

    static class b extends SafeBroadcastReceiver {
        private WeakReference<BaseGsListFragment> ˊ;

        private b(BaseGsListFragment baseGsListFragment) {
            this.ˊ = new WeakReference(baseGsListFragment);
        }

        public void onReceiveMsg(Context context, Intent intent) {
            if (context == null || intent == null || this.ˊ == null) {
                Logger.e("BaseGsListFragment", "onReceive, context = " + context + ", intent = " + intent + ", listFragmentRef = " + this.ˊ);
                return;
            }
            BaseGsListFragment baseGsListFragment = (BaseGsListFragment) this.ˊ.get();
            if (baseGsListFragment == null) {
                Logger.e("BaseGsListFragment", "onReceive, listFragment = null");
                return;
            }
            String action = intent.getAction();
            if (o.fbf.c.ˎ.equals(action) || o.fbf.c.ॱ.equals(action)) {
                ˏ(baseGsListFragment);
            } else if ("cardlist_show_toast_action".equals(action)) {
                Object stringExtra = intent.getStringExtra("toast_tips");
                if (TextUtils.isEmpty(stringExtra) || !baseGsListFragment.ﹳ) {
                    Logger.e("BaseGsListFragment", "onReceive, tips: " + stringExtra + ", isVisiable = " + baseGsListFragment.ﹳ);
                    return;
                }
                evk.ˏ();
                evk.ॱ(stringExtra, 0).ˋ();
            }
        }

        private void ˏ(BaseGsListFragment baseGsListFragment) {
            PullUpListView ॱ = baseGsListFragment.ͺˎ;
            if (ॱ != null) {
                CardListAdapter cardListAdapter;
                if (ॱ.getAdapter() instanceof HeaderViewListAdapter) {
                    cardListAdapter = (CardListAdapter) ((HeaderViewListAdapter) ॱ.getAdapter()).getWrappedAdapter();
                } else {
                    cardListAdapter = (CardListAdapter) ॱ.getAdapter();
                }
                if (cardListAdapter != null) {
                    cardListAdapter.notifyDataSetChanged();
                    return;
                }
                return;
            }
            Logger.e("BaseGsListFragment", "onReceive, listView = null");
        }
    }

    public interface c {
        void ˎ(boolean z);
    }

    class d implements Runnable {
        final /* synthetic */ BaseGsListFragment ˋ;

        private d(BaseGsListFragment baseGsListFragment) {
            this.ˋ = baseGsListFragment;
        }

        public void run() {
            if (this.ˋ.ՙ != null) {
                this.ˋ.ՙ.setLoadData();
            }
        }
    }

    class e {
        final /* synthetic */ BaseGsListFragment ॱ;

        private e(BaseGsListFragment baseGsListFragment) {
            this.ॱ = baseGsListFragment;
        }

        private void ˊ(TaskFragment taskFragment, List<cvt> list) {
            if (this.ॱ.י != null && this.ॱ.י.ˊॱ() == 0) {
                this.ॱ.ʽ(1);
                this.ॱ.ʽ = -1;
            }
            if (this.ॱ.ˊʻ() == 1) {
                this.ॱ.ʽ = -1;
            }
            eyi ͺ = new o.eyi.b(this.ॱ.ॱᶥ(), this.ॱ.ʽ).ˋ(this.ॱ.ˎ).ˊ(this.ॱ.ˊ).ˏ(this.ॱ.ॱॱ).ˎ(this.ॱ.ˊʻ()).ͺ();
            ͺ.ˎ(this.ॱ.ʽˋ);
            if (ˏ()) {
                ͺ.ॱ(35);
            }
            if (this.ॱ.ˊʻ() == 1 && this.ॱ.ʽ == -1 && this.ॱ.ॱꜟ) {
                ͺ.setRequestType(BaseRequest.RequestStrategy.ˎ);
            }
            if (dgx.ˏ().ˎ(this.ॱ.ʼˊ) && ͺ.ˊ() == 1) {
                this.ॱ.ꞌॱ = System.currentTimeMillis();
            }
            list.add(ͺ);
            this.ॱ.ʻᐝ = ͺ.getCacheID();
            if (this.ॱ.ͺˎ != null) {
                this.ॱ.ͺˎ.setmPullRefreshing(true);
            }
        }

        private boolean ˏ() {
            return this.ॱ.ॱᶥ().startsWith("gss|game_community") || this.ॱ.ॱᶥ().startsWith("gss|forum_sub");
        }

        private void ˏ(com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b bVar) {
            if (this.ॱ.ͺˎ != null) {
                this.ॱ.ͺˎ.setmPullRefreshing(false);
            }
            if ((bVar.ˊ instanceof eyi) && (bVar.ˋ instanceof WiseJointDetailResponse)) {
                eyi o_eyi = (eyi) bVar.ˊ;
                WiseJointDetailResponse wiseJointDetailResponse = (WiseJointDetailResponse) bVar.ˋ;
                Logger.ˎ("BaseGsListFragment", "onResponse, fragmentId: " + this.ॱ.ॱꓸ() + ", method: " + o_eyi.getMethod_() + ", pageNum: " + o_eyi.ˊ() + ", responseType: " + wiseJointDetailResponse.getResponseType());
                this.ॱ.ˏ(System.currentTimeMillis());
                if (this.ॱ.ˋ(wiseJointDetailResponse.getResponseCode(), wiseJointDetailResponse.getRtnCode_())) {
                    this.ॱ.ˏ(o_eyi, wiseJointDetailResponse);
                    return;
                } else {
                    this.ॱ.ॱ(o_eyi, wiseJointDetailResponse);
                    return;
                }
            }
            Logger.e("BaseGsListFragment", "!(response.request instanceof WiseJointDetailRequest) || !(response.responseObj instanceof WiseJointDetailResponse)");
        }
    }

    class h {
        final /* synthetic */ BaseGsListFragment ˏ;

        private h(BaseGsListFragment baseGsListFragment) {
            this.ˏ = baseGsListFragment;
        }

        private void ˋ(eyi o_eyi, WiseJointDetailResponse<?> wiseJointDetailResponse) {
            this.ˏ.ˋ(o_eyi, (WiseJointDetailResponse) wiseJointDetailResponse);
            this.ˏ.ʻ(wiseJointDetailResponse.ॱˋ());
            wiseJointDetailResponse.ˊ(o_eyi.ˊ());
            this.ˏ.ॱॱ(wiseJointDetailResponse.ˋ());
            List ˋ = this.ˏ.ॱ(wiseJointDetailResponse);
            if (this.ˏ.ॱ(ˋ)) {
                boolean z;
                this.ˏ.ˋ(ˋ);
                if (this.ˏ.ʻˋ != null) {
                    this.ˏ.ʻˋ.ˎ(wiseJointDetailResponse.ˊ() == 1);
                }
                cia ᐝॱ = this.ˏ.י;
                if (wiseJointDetailResponse.getResponseType() == com.huawei.appgallery.serverreqkit.api.bean.ResponseBean.a.ˏ) {
                    z = true;
                } else {
                    z = false;
                }
                ᐝॱ.ˏ(z);
                if (wiseJointDetailResponse.getResponseType() != com.huawei.appgallery.serverreqkit.api.bean.ResponseBean.a.ˏ) {
                    this.ˏ.ˏॱ(false);
                    this.ˏ.י();
                    this.ˏ.ˎ(o_eyi);
                }
                if (this.ˏ.ͺˎ != null) {
                    PullUpListView ʼॱ = this.ˏ.ͺˎ;
                    if (wiseJointDetailResponse.getResponseType() != com.huawei.appgallery.serverreqkit.api.bean.ResponseBean.a.ˋ) {
                        z = true;
                    } else {
                        z = false;
                    }
                    ʼॱ.setEnableChangeLoadingView(z);
                }
                this.ˏ.ˊ(o_eyi, (WiseJointDetailResponse) wiseJointDetailResponse);
                this.ˏ.ˏ(wiseJointDetailResponse);
                this.ˏ.ॱˎ(0);
                this.ˏ.ॱˋ(true);
                int ˊॱ = this.ˏ.י.ˊॱ();
                if ((this.ˏ.ॱꞌ() || this.ˏ.ꜝ() <= 1) && ˊॱ == 0) {
                    this.ˏ.ˋॱ(false);
                    Logger.e("BaseGsListFragment", "show noDataView, provider is empty");
                    return;
                }
                this.ˏ.ʽ = wiseJointDetailResponse.ˏ();
                if (this.ˏ.ᐧॱ != null) {
                    this.ˏ.ᐧॱ.ˋ(this.ˏ.ॱꓸ(), this.ˏ.י);
                    return;
                }
                return;
            }
            Logger.ˎ("BaseGsListFragment", "processSuccess not need handleResponse, uri: " + this.ˏ.ʼˊ);
        }

        private void ˎ(eyi o_eyi, WiseJointDetailResponse<?> wiseJointDetailResponse) {
            BaseRequest.RequestStrategy requestType = o_eyi.getRequestType();
            com.huawei.appgallery.serverreqkit.api.bean.ResponseBean.a responseType = wiseJointDetailResponse.getResponseType();
            int ॱ = this.ˏ.ॱ((ResponseBean) wiseJointDetailResponse);
            Logger.e("BaseGsListFragment", "processFailed: " + this.ˏ.ॱꓸ() + ", resType:" + responseType + ", rtnCode = " + ॱ);
            if (responseType != com.huawei.appgallery.serverreqkit.api.bean.ResponseBean.a.ˋ) {
                if (responseType == com.huawei.appgallery.serverreqkit.api.bean.ResponseBean.a.ˏ && requestType == BaseRequest.RequestStrategy.ˎ && o_eyi.ˊ() == 1) {
                    this.ˏ.ʽ(this.ˏ.ˊʻ() + 1);
                }
                this.ˏ.ꞌॱ = 0;
                this.ˏ.ˏॱ(true);
                if (this.ˏ.ॱˌ != null) {
                    this.ˏ.ॱˌ.onEvent(ॱ);
                } else {
                    this.ˏ.ˎ(this.ˏ.ՙ, ॱ);
                }
                if (this.ˏ.ͺˎ != null) {
                    this.ˏ.ͺˎ.ॱˊ();
                }
            }
        }
    }

    public void ˊ(c cVar) {
        this.ʻˋ = cVar;
    }

    public synchronized int ˊʻ() {
        return this.ʹ;
    }

    public synchronized void ʽ(int i) {
        this.ʹ = i;
    }

    public void ॱ(Activity activity) {
        super.ॱ(activity);
        if (activity instanceof eyn) {
            ॱ((eyn) activity);
        }
        if (activity instanceof c) {
            ˊ((c) activity);
        }
    }

    public void ˏ(Bundle bundle) {
        this.ﾟ = ˋʽ();
        ˉॱ();
        eoj.ˋ().ˎ(this.ﾟ, this);
        super.ˏ(bundle);
    }

    public void ᐝʼ() {
        if (TextUtils.isEmpty(this.ˊʼ)) {
            this.ˊʼ = ˊʽ();
        }
        super.ᐝʼ();
        com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b ʽʻ = ʽʻ();
        if (ʽʻ != null) {
            ᐧॱ();
            if (ʽʻ.ˋ instanceof BaseDetailResponse) {
                BaseRequest o_eyi = new eyi();
                o_eyi.ˏ(1);
                o_eyi.ᐝ(this.ʼˊ);
                BaseDetailResponse baseDetailResponse = (BaseDetailResponse) ʽʻ.ˋ;
                ResponseBean wiseJointDetailResponse = new WiseJointDetailResponse();
                wiseJointDetailResponse.ˊ(baseDetailResponse.ʻॱ());
                wiseJointDetailResponse.ॱ(baseDetailResponse.ᐝॱ());
                wiseJointDetailResponse.ˏ(baseDetailResponse.ॱ());
                wiseJointDetailResponse.ˏ(baseDetailResponse.ॱˎ());
                wiseJointDetailResponse.ˊ(o_eyi.ˊ());
                ॱॱ(baseDetailResponse.ˋ());
                this.ʽˊ = baseDetailResponse.ॱˋ();
                ˋ(ॱ(wiseJointDetailResponse));
                ˋॱ(true);
                if (this.י == null) {
                    cia ˊ = ˊ(ContentManager.getInstant().getContext());
                    eym.ˋ(ˊ, o_eyi, wiseJointDetailResponse);
                    this.י = ˊ;
                    if (this.ᐧॱ != null) {
                        this.ᐧॱ.ˋ(this.ʼᐝ, ˊ);
                    }
                } else if (this.י.ˏॱ()) {
                    eym.ˋ(this.י, o_eyi, wiseJointDetailResponse);
                }
            }
        }
    }

    public View ˋ(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        cgu.ˎ(ॱˋ());
        chm.ॱ().ˋ();
        super.ˋ(layoutInflater, viewGroup, bundle);
        ˋʻ();
        if (ʼʻ()) {
            if (ꜝ() <= 1 && this.י != null && this.י.ˊॱ() <= 0) {
                ˋॱ(false);
                this.ͺˎ.setNeedFootView(false);
            }
            ˏ(System.currentTimeMillis());
        } else {
            ॱ(layoutInflater);
            if (ˑॱ()) {
                Logger.ˎ("BaseGsListFragment", "isReqServerFailed，onLoadingMore, uri = " + this.ʼˊ);
                ʽᐝ();
            }
        }
        return this.ॱˍ;
    }

    public void ˌ() {
        super.ˌ();
        this.ﹳ = true;
        if (ॱㆍ() > 0 && System.currentTimeMillis() - ॱㆍ() > 5000) {
            ˏ(System.currentTimeMillis());
            new Handler().postDelayed(new d(), 2000);
        }
    }

    public void ˋᐝ() {
        super.ˋᐝ();
        this.ﹳ = false;
    }

    public void ˎˎ() {
        eoj.ˋ().ˊ(this.ﾟ);
        super.ˎˎ();
    }

    public void onAccountBusinessResult(ccp o_ccp) {
        if (!ﹳॱ()) {
            if (102 == o_ccp.ˎ || 103 == o_ccp.ˎ) {
                this.ʼˋ.postDelayed(new a(), 500);
            }
        }
    }

    protected void ˉॱ() {
        if (this.ᐧॱ != null) {
            ˋ(this.ᐧॱ.ॱ(ॱꓸ()));
        }
        if (this.י == null) {
            ˋ(ˊ(ॱˋ()));
            return;
        }
        Logger.ˎ("BaseGsListFragment", "createProvider, provide, fromCache: " + this.י.ˎ + ", isHasMore: " + this.י.ᐝ());
        if (this.י.ˎ) {
            this.י.ॱॱ();
        } else {
            this.ʽ = this.י.ʽ().getLong("MaxPageId");
            ʽ(this.י.ʽ().getInt("ReqPageNum"));
            if (this.י.ᐝ()) {
                ʽ(ˊʻ() + 1);
            }
            ॱˋ(true);
            ꜟॱ();
        }
        Logger.ˎ("BaseGsListFragment", "createProvider, restore provider from cache, maxId: " + this.ʽ + ", reqPageNum: " + ˊʻ());
    }

    protected String ˊʽ() {
        return ContentManager.getInstant().getContext().getString(exp$f.ˎ);
    }

    protected void ˋʻ() {
        if (this.ʻˊ != null) {
            this.ʻˊ.ˋ(this.ˊʼ);
        }
    }

    public void ˌॱ() {
        IntentFilter intentFilter = new IntentFilter(o.fbf.c.ˎ);
        intentFilter.addAction("cardlist_show_toast_action");
        intentFilter.addAction(o.fbf.c.ॱ);
        ActivityUtil.registerReceiver(ॱˋ(), intentFilter, this.ꜟॱ);
        ll.ˏ(ContentManager.getInstant().getContext()).ˏ(this.ꜟॱ, intentFilter);
    }

    public void ˋʼ() {
        ActivityUtil.unregisterReceiver(ॱˋ(), this.ꜟॱ);
        ll.ˏ(ContentManager.getInstant().getContext()).ˋ(this.ꜟॱ);
    }

    public void ॱ(NodataWarnLayout nodataWarnLayout) {
        if (nodataWarnLayout != null) {
            nodataWarnLayout.setWarnImage(ͺˎ());
            nodataWarnLayout.setWarnTextOne(ͺˏ());
            nodataWarnLayout.setViewVisible(com.huawei.appgallery.foundation.ui.framework.widget.NodataWarnLayout.e.ˏ, 8);
            nodataWarnLayout.setViewVisible(com.huawei.appgallery.foundation.ui.framework.widget.NodataWarnLayout.e.ˎ, 8);
            epv.ˋ(ᐝॱ().getConfiguration(), ॱˋ(), nodataWarnLayout, new View[0]);
        }
    }

    public void ˋ(TaskFragment taskFragment, List<cvt> list) {
        this.ﹳॱ.ˊ(taskFragment, (List) list);
    }

    public boolean ˊ(TaskFragment taskFragment, com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b bVar) {
        this.ﹳॱ.ˏ(bVar);
        return false;
    }

    public void ॱ(eyi o_eyi, WiseJointDetailResponse<?> wiseJointDetailResponse) {
        this.ꜝ.ˎ(o_eyi, wiseJointDetailResponse);
    }

    protected String ˋʽ() {
        return this.ʼˊ + System.currentTimeMillis();
    }

    private void ˎ(NetworkRemindBar networkRemindBar, int i) {
        if (networkRemindBar == null) {
            return;
        }
        if (3 == i) {
            networkRemindBar.ॱ();
        } else {
            networkRemindBar.ˏ();
        }
    }

    private void י() {
        if (this.ՙ != null) {
            this.ՙ.setNetworkOK();
        }
    }

    protected void ˊ(eyi o_eyi, WiseJointDetailResponse<?> wiseJointDetailResponse) {
        if ((this.י instanceof chl) && o_eyi.ˊ() == 1) {
            chl o_chl = (chl) this.י;
            o_chl.ˊ(wiseJointDetailResponse);
            o_chl.ॱ(o_eyi);
        }
        if (ﹳॱ()) {
            ˎ(this.ͺˎ, 8);
            ˎ(this.ߴ, 8);
            ˋ(o_eyi, wiseJointDetailResponse);
            return;
        }
        ˋॱ(true);
        if (o_eyi.ˊ() == 1) {
            this.י.ॱॱ();
        }
        eym.ˋ(this.י, o_eyi, wiseJointDetailResponse);
        if (this.י.ᐝ() && wiseJointDetailResponse.getResponseType() != com.huawei.appgallery.serverreqkit.api.bean.ResponseBean.a.ˏ) {
            ʽ(ˊʻ() + 1);
        }
    }

    public void ʽᐝ() {
        ʿˊ();
    }

    public void ʼᐝ() {
        this.ͺˎ.ʻ();
        ʿˊ();
    }

    public void ˎͺ() {
        ˏॱ(false);
        this.ʽ = -1;
        ʽ(1);
        ॱˋ(false);
        if (this.י != null) {
            int ˊॱ = this.י.ˊॱ();
            if ((ॱꞌ() || ꜝ() <= 1) && ˊॱ == 0) {
                ᶥॱ();
                ॱ(this.ᴵ);
            }
        }
        ʿˊ();
        Logger.ˎ("BaseGsListFragment", "onRefreshCurrPage : " + this.ˊʼ + ", uri = " + this.ʼˊ);
    }

    public void onScrollStateChanged(AbsListView absListView, int i) {
        super.onScrollStateChanged(absListView, i);
    }

    public void onScroll(AbsListView absListView, int i, int i2, int i3) {
        this.ͺˎ.setVerticalScrollBarEnabled(true);
    }

    public void ˏ(int i, cih o_cih) {
        if (i == 0 || 9 == i) {
            CardBean ˌ = o_cih.ˌ();
            if (!(ˌ instanceof BaseCardBean) || TextUtils.isEmpty(ˌ.ॱॱ()) || ActivityUtil.isAcitivtyNotValid(ॱˋ())) {
                Logger.e("BaseGsListFragment", "onClick, error, cardBean = " + ˌ + ", activity destroyed = " + ActivityUtil.isAcitivtyNotValid(ॱˋ()));
                return;
            }
            BaseCardBean baseCardBean = (BaseCardBean) ˌ;
            baseCardBean.ˊˋ(baseCardBean.ـॱ());
            if (!cii.ˊ().ˊ(ॱˋ(), baseCardBean, i)) {
                evk.ˏ(ॱˋ(), exp$f.ͺˎ, 0).ˋ();
                Logger.e("BaseGsListFragment", "onClick, dispatch failed, uri = " + baseCardBean.ॱॱ());
            }
        }
    }

    public cja ߴ() {
        return new cip(this.ʼ);
    }

    public boolean ˑॱ() {
        return this.ᐝ;
    }

    public void ˏॱ(boolean z) {
        this.ᐝ = z;
    }

    public void ॱ(eyn o_eyn) {
        this.ʻˊ = o_eyn;
    }

    protected void ˎ(String str) {
        this.ˊʼ = ˊʽ();
        if (!TextUtils.isEmpty(str)) {
            this.ˊʼ = str;
        }
    }

    public int ͺˎ() {
        return this.ॱ;
    }

    public void ʼ(int i) {
        if (i > 0) {
            this.ॱ = i;
        }
    }

    public int ͺˏ() {
        return this.ˏ;
    }

    public void ॱॱ(int i) {
        if (i > 0) {
            this.ˏ = i;
        }
    }

    public void ॱ(String str) {
        this.ॱॱ = str;
    }

    public void ˊ(String str) {
        this.ˎ = str;
    }

    public void ˏ(String str) {
        this.ˊ = str;
    }

    public void ˊॱ(boolean z) {
        this.ʼ = z;
    }

    public void ˈॱ() {
    }

    public void ˋ(int i) {
        super.ˋ(i);
        this.ﹳ = true;
    }

    public void ʽˊ() {
        super.ʽˊ();
        this.ﹳ = false;
    }

    protected boolean ˋ(int i, int i2) {
        return i == 0 && i2 == 0;
    }

    public boolean ᐝॱ(int i) {
        return i == 1;
    }

    protected void ˋ(eyi o_eyi, WiseJointDetailResponse<?> wiseJointDetailResponse) {
    }

    protected void ˏ(eyi o_eyi, WiseJointDetailResponse<?> wiseJointDetailResponse) {
        this.ꜝ.ˋ(o_eyi, wiseJointDetailResponse);
    }

    private void ॱॱ(String str) {
        if (TextUtils.isEmpty(this.ˊʼ) || this.ˊʼ.equals(ˊʽ())) {
            ˎ(str);
            ˋʻ();
        }
    }

    protected int ॱ(ResponseBean responseBean) {
        int responseCode = responseBean.getResponseCode();
        if (responseCode != 0 || responseBean.getRtnCode_() == 0) {
            return responseCode;
        }
        return 1;
    }

    private void ˎ(eyi o_eyi) {
        if (!dgx.ˏ().ˎ(this.ʼˊ) || o_eyi.ˊ() != 1) {
            return;
        }
        if (CollectCheck.isEmpty(this.ᐝʽ)) {
            ٴ();
            return;
        }
        String ˏ = ((dgp) this.ᐝʽ.get(0)).ˏ();
        Object ˊ = dgx.ˏ().ˊ();
        if (TextUtils.isEmpty(ˊ) || !ˊ.equals(ˏ)) {
            dgx.ˏ().ॱ(ˏ);
        } else {
            ٴ();
        }
    }

    private void ٴ() {
        this.ꞌॱ = System.currentTimeMillis() - this.ꞌॱ;
        String concat = cdj.ˏ().concat("026");
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put(HianalyticsData.ERROR_CODE, "time_0002_".concat(this.ꞌॱ + ""));
        ese.ˋ(concat, linkedHashMap);
        eqs.ˎ().ˊ(true);
    }

    public void ͺ(String str) {
        eys.ˋ(str);
    }
}
